package com.yx.pc.api.service.impl;

import com.yx.pc.api.service.PcTdUserProFileService;
import com.yx.system.dao.TdUserProFileMapper;
import com.yx.system.entity.TdUserProFile;
import com.yx.system.service.TdUserProFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(propagation= Propagation.REQUIRED, rollbackFor=Exception.class)
public class PcTdUserProFileServiceImpl implements PcTdUserProFileService {

    @Autowired
    private TdUserProFileMapper tdUserProFileMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdUserProFileMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdUserProFile record) {
        return tdUserProFileMapper.insert(record);
    }

    @Override
    public int insertSelective(TdUserProFile record) {
        return tdUserProFileMapper.insertSelective(record);
    }

    @Override
    public TdUserProFile selectByPrimaryKey(Integer id) {
        return tdUserProFileMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdUserProFile record) {
        return tdUserProFileMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdUserProFile record) {
        return tdUserProFileMapper.updateByPrimaryKey(record);
    }
}
